fix routing issues in registration process