added validation to blog app