more tweaks to register and Login