`login` returns an access token or an error, never a null value. Please remove this "if" block.