moved session_start to the beginning of each php file