add user object to rootscope after popup