removed incorrect if statement from newpost.erb