Adding user authentication functionality: model only