Changed createAccount.php: We need to use jquery/AJAX to authenticate user log in instead of php. Thus, I removed validation functionality from the php file for log in. It now only handles create account data.