assigning encrypted passwords and allowing registered users to login and logout