Validation for integer inputs

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

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