added encryption for password