Added login and registration with server verification.