Add validation to register/register