fixed invitation; error after login