Added validation to new post form