Changed login failure to throw original exception