login and tweaks