added login and registry