Added security fix for login failures