added if to log in, since ie8 remembers the last login