There is no need to create a list of users. So you don't have to use the first function.
It is good practise to store the encrypted password instead of the actual password. Below is an example "Encrypt" which encrypts the password and adds a salt. The resulting string can be stored in your...