Implement more secure login method