fix the secure login problem