Made login connection more secure.