added jquery and error messages for ajax. added placeholders