Added password encryption, user registration, login and logout