Basic validations on the server