created user model and added authentication