add validations

use 2 spaces for indentation