Working Login in Example

Added bcrypt encryption for password security and it talks with the web app's user database.

Searches for the user first to see if they exist in the database. If they do, they compare
encrypted passwords to see if they match.  If they do, then the user is successfully logged in,
and is now allowed to write into their database.