added functionality for password