adds authenticate() to user model