created public folder and moved check.php