login wrapper working