Changed functions to a real_escaped_string and included that in the checklogin.php