added jquery timeago and refactored validation