added authentication to the user model