add default login logic and add registry return value