JavaScript code added to client validation when creating account.