before_action

Before action and validation.