login and registry done