Prevent nullpointerexceptions from occurring when authentication fails.