front-end validation for adding an account