adding logic for secure password and unique email