login wrapper worked