Updated the user logout process to use a post variable to call the function
Modified some functions that were set to public which shouldn't have been.