Added a secure method for authorizing a user with a usernamd and password.