added changePassword method to User class