Updated User model to auth using username.