validating content posted (can not be blank)
if user is logged in, it redirects you to diary path