Fix auth.php and use when creating posts