logout function fixed and updated on .php pages

switched from <a> tag to form use and fixed url.