add ajax functionality to signup form to handle errors