added the password functionality