validate email password on register