- added setPassword function to user model