Add some common checks for field validation in Mojolicious