You have blank lines in your login page php code. That can cause sessions to not work properly. Try removing those and see if it helps.
If you still have issues, I'll need FTP access and a URL to reproduce the errors in order to debug this properly.