add registration window and config file checking function