added authentication to the users model.