Added authentication to the user model.