Fix for multiple login/logout, fix for proper password checking