if($login_check > 0){

questo if non e' chiuso.