fix login spec