validations and view