changed api/updateAccount function to have two lines for echoing out an error and exiting. This allowed the return to work properly, and now the error messages are reflected in the update account on the website. fix #20