Moved html page to php and added logout functionality