Added functionality for changing the password