fixed error messaging
finished ajax