Renamed file to be php and added code to check session messages.