validation controller formatting