Added validations for userName in User model
Fixed formatting errors