Your database structure suggests that you are planning of storing the passwords (or a simple hash) in your database. If you have little or no experience in creating a secure login functionality then I would suggest using an existing auth library from people who have such experience.
Some popular ones out there are:
Ion Auth
Community Auth