Validation for integer inputs

Signed-off-by: Ruben Sanchez <ruben.flex@gmail.com>