add validatio for register