fixed crashing on incorrect login