Made validation work on backend. Still can't run custom validation, though