filter to avoid app crashing for incorrect login