Fixing bug in admin js.  Also adding validations on post model.