finish registration, need to handle exception