login($credentials); header('Location: ' . $_POST['url']);