formated user model with validations and optimization