Update affiliate.php

Fix: Call to a member function getTotalLoginAttempts() on a non-object