Rewrote form validation. Prettier and has the exact same output