Added if-check to session_start() to get rid of session already started errors.