after y use the code for validating the fields on the form to not be empty when the user subtmit a new post, the forms doesn't render.