Find all functions that satisfy the conditions and .
%V0
Find all functions $f:\mathbb{R} \rightarrow \mathbb{R}$ that satisfy the conditions
$$f(1+xy)-f(x+y)=f(x)f(y) \quad \text{for all } x,y \in \mathbb{R},$$
and $f(-1) \neq 0$.
Source: Međunarodna matematička olimpijada, shortlist 2012