Update authenticate and login methods