Fixed login crash