added jquery function to post form and added font awesome spinner