completed login and registration