You're using the variable $p
up top but you're using $pas
down below.
You shouldn't be doing any of that mysql_escape_blahblahblah stuff with prepared statements, anyway. Just do this directly:
$loginQuery->bind_param('ss',$_POST['email'],$_POST['pass']);