I have attached the changes to the login11.php; you were right it was the loginSuccessful.php that was causing the problem. That is fixed now. What is now happening is when I put the correct username regardless if the password is correct or not it will take me to the loginSuccessful.php page; but if I enter the incorrect username it will give me the "Invalid Username or Password" error message.