made the user model more restful