various login and fixes