Avoid Exception on Login Error