updated password structure to be more secure