Validations before backend