added encryption for two password fields