added validations to posts, created partial of form, modified application helper