Add users

updated ajax to handle error response
refined tests