Login and register merge