fix bug register & better integration login & register popup