added validation for user_id in micropost with tests