Add negative validation

Signed-off-by: Jacobo Tibaquira <jacobotibaquira@gmail.com>
Fixging functions

Signed-off-by: Jacobo Tibaquira <jacobotibaquira@gmail.com>