extract signin logic from SignInCept.php into functional test helper