Fixed login and crash.