login crash fix