Forgot to remove die command for testing in login.php file, fixed.