Moved session_start(); to after first open php tag