fix: redirect after login

converts tests to specs