bugfix for logins,etc