Validation when registering

Signed-off-by: Wim Tibackx <wim.tibackx@student.kdg.be>