post controller errors fixed and validations worked on