Created a class for php session and message display