pre validation controller