updates for login and registration system