edited user model for login form purposes