Updated the user model to sanitize attributes