Made passreset more secure