fixed exception handling for postNewUser method