Fixed validating properly this time.

Signed-off-by: Oskar <oskar.warme@gmail.com>