Moved session_start() to hope that it solves problem