It looks correct to me. Is there a live URL where I can test the page and get FTP access to debug? It may be an issue with session variables not working properly on the server. Are you still getting the same result and same url when you try to log in?