Refactors form validation so it's shorter :stuck_out_tongue: