in reply to Re^2: how to move to new page on successful loginin thread how to move to new page on successful login
Move the code that checks for the user's credentials before the code that prints anything.