finish error handling on user model