added login authentication and hash password