login now throws errors properly