Fixed login activity crash.