renaming specs for consistency and refactoring login_helpers