Fix login methods.