fixes for the clubs and login helpers, and refactored clubs_application_spec