Finished user model for basic login authentication