fixed reference error in secure login