Fix HTTP Exception on invalid login