Added user validation rules, fixed create/update actions