Corrected login and registration system