validation in blog.rb