added more password functionality