added updated login and registration system