worked on login and registry